﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace notepadplus.Dialogs
{
    public partial class KeywordPanelOptions : Form
    {
        public KeywordPanelOptions()
        {
            InitializeComponent();
        }

        private void saveButton_Click(object sender, EventArgs e)
        {
            if (unhideControl.Checked == true)
            {
                Properties.Settings.Default.keywordPanel_UnhideIn_Menu = true;
                Properties.Settings.Default.Save();
                this.Close();
            }
            else
            {
                Properties.Settings.Default.keywordPanel_UnhideIn_Menu = false;
                Properties.Settings.Default.Save();
                this.Close();
            }
        }

        private void KeywordPanelOptions_Load(object sender, EventArgs e)
        {
            if (Properties.Settings.Default.keywordPanel_UnhideIn_Menu == false)
            {
                unhideControl.Checked = false;
            }
            else
            {
                unhideControl.Checked = true;
            }
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
